//
//  AppDelegate.swift
//  Loop
//
//  Created by thomas on 2020/9/23.
//

import UIKit
import CoreData

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        return true
    }

    func applicationWillTerminate(_ application: UIApplication) {
        StoreService.shared.saveContext()
    }
}

